liblockdep: Fix 'defined but not used' warning for init_utsname()
authorBen Hutchings <ben@decadent.org.uk>
Tue, 14 Jun 2016 20:32:11 +0000 (21:32 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 19 Sep 2017 01:34:05 +0000 (02:34 +0100)
commitaaf402b248c03f55ba67ab10c91b85e77f00e23e
tree5abcb19d25d7c8864241ffc129f79d79fa6edb36
parentdc87cd8bf30ff74d076b9cdd437b6a4a3c213ecb
liblockdep: Fix 'defined but not used' warning for init_utsname()

We define init_utsname() as static but not inline, resulting
in a warning for every source file that includes lockdep.h but
doesn't call it.

Since it is only used by lockdep.c, define it in there.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name liblockdep-fix-defined-but-not-used-warning-for-init.patch
tools/lib/lockdep/lockdep.c
tools/lib/lockdep/uinclude/linux/lockdep.h